import request from '@/utils/request'

export function login(data) {
  return request({
    // url: '/vue-admin-template/user/login',
    url: '/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/operator/info',
    method: 'post',
    // params: { token }
  })
}
  
export function logout(commit) {
  return new Promise((resolve, reject) => {
    // removeToken()
    // resetRouter()
    // commit('RESET_STATE')
    resolve()
  })
}